import request from '@/utils/request'

// 查询总库入库记录列表
export function listWareWarehouseTotalin(query) {
  return request({
    url: '/warehouse/WareWarehouseTotalin/list',
    method: 'get',
    params: query
  })
}

// 查询总库入库记录详细
export function getWareWarehouseTotalin(id) {
  return request({
    url: '/warehouse/WareWarehouseTotalin/' + id,
    method: 'get'
  })
}

// 根据规格查询总库的某个对应信息
export function getWareWarehoueTotal(specification) {
  return request({
    url: '/warehouse/WareWarehouseTotalin/' + specification,
    method: 'get'
  })
}

// 新增总库入库记录
export function addWareWarehouseTotalin(data) {
  return request({
    url: '/warehouse/WareWarehouseTotalin',
    method: 'post',
    data: data
  })
}

// 修改总库入库记录
export function updateWareWarehouseTotalin(data) {
  return request({
    url: '/warehouse/WareWarehouseTotalin',
    method: 'put',
    data: data
  })
}

// 删除总库入库记录
export function delWareWarehouseTotalin(id) {
  return request({
    url: '/warehouse/WareWarehouseTotalin/' + id,
    method: 'delete'
  })
}
